package com.zzj.model.dto;

import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
public class CommentCreateDto {


    @NotNull(message = "请输入评论目标ID")
    private int targetId;
    @NotNull(message = "请输入评论者ID")
    private int fromId;
    @NotEmpty(message = "请输入评论者用户名")
    private String fromUsername;
    @NotEmpty(message="请输入评论者头像")
    private String fromAvatar;
    @NotEmpty(message = "请输入评论内容")
    private String content;

}
